/* 
 * Copyright [2018] [Alex/libo(liboms@hotmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.jpdf.handler;

import java.util.Map;

/** 
 * @title AbstractPdfHandler.java  
 * @package com.hyts.jpdf.handler  
 * @description TODO  
 * @see TODO
 * @author libo/Alex
 * @email liboms@hotmail.com/liboware@163.com  
 * @date 2018年5月15日 
 * @version V1.0 
 */
public abstract class AbstractPdfHandler<T>{

	/**  
	 * <b>createPdf</b>
	 * <p>创建pdf文件操作</p>
	 * @param outputFile 输出文件路径:
	 * @param param 泛型的操作对象
	 * @return 是否成功
	 */ 
	public abstract boolean createPdf(String outputFile,T param);
	
	/**  
	 * <b>htmlToPdf</b>
	 * <p>将html转为pdf文件操作</p>
	 * @param htmlFilePath html文件路径
	 * @param outputFile 输出文件路径
	 * @return
	 */ 
	public abstract boolean htmlToPdf(String htmlFilePath,String outputFile);
	
	/**  
	 * <b>freemarkerToPdf</b>
	 * <p>模板freemarker转为pdf文件操作</p>
	 * @param templatePath
	 * @param data
	 * @param outputFile
	 * @return
	 */ 
	public abstract boolean freemarkerToPdf(String templatePath,Map<String,Object> data,String outputFile);
	
}
